package com.zzt.cps.sdk.comm.constant;

/**
 * Copyright: Copyright (c) 2018  zteits
 *
 * @ClassName: com.zzt.cps.sdk.comm.constant
 * @Description: 微信API请求URL常量
 * @version: v1.0.0
 * @author: atao
 * @date: 2018/7/4   下午3:59
 * Modification History:
 * Date         Author          Version      Description
 * ---------------------------------------------------------*
 * 2018/7/4      atao          v1.0.0          创建
 */
public enum WxWebURLEnum {

    UUID_URL(BASEURLEnum.WX_BASE_LOGIN.getUrl() + "/jslogin", "UUIDLURL", "GET", "JSON"),
    QRCODE_URL(BASEURLEnum.WX_BASE_LOGIN.getUrl() + "/qrcode/", "初始化URL", "GET", "JSON"),
    STATUS_NOTIFY_URL(BASEURLEnum.WX_BASE_LOGIN.getUrl() + "/webwxstatusnotify?lang=zh_CN&pass_ticket=%s", "微信状态通知",
        "GET", "JSON"),
    LOGIN_URL(BASEURLEnum.WX_BASE_LOGIN.getUrl() + "/cgi-bin/mmwebwx-bin/login", "登陆URL", "GET", "JSON"),
    INIT_URL("%s/webwxinit?r=%s&pass_ticket=%s", "初始化URL", "GET", "JSON"),
    SYNC_CHECK_URL("/synccheck", "检查心跳URL", "GET", "JSON"),
    WEB_WX_SYNC_URL("%s/webwxsync?sid=%s&skey=%s&pass_ticket=%s", "web微信消息同步URL", "GET", "JSON"),
    WEB_WX_GET_CONTACT("%s/webwxgetcontact", "web微信获取联系人信息URL", "GET", "JSON"),
    WEB_WX_SEND_MSG("%s/webwxsendmsg", "发送消息URL", "GET", "JSON"),
    WEB_WX_UPLOAD_MEDIA("%s/webwxuploadmedia?f=json", "上传文件到服务器", "GET", "JSON"),
    WEB_WX_GET_MSG_IMG("%s/webwxgetmsgimg", "下载图片消息", "GET", "JSON"),
    WEB_WX_GET_VOICE("%s/webwxgetvoice", "下载语音消息", "GET", "JSON"),
    WEB_WX_GET_VIEDO("%s/webwxgetvideo", "下载语音消息", "GET", "JSON"),
    WEB_WX_PUSH_LOGIN("%s/webwxpushloginurl", "不扫码登陆", "GET", "JSON"),
    WEB_WX_LOGOUT("%s/webwxlogout", "退出微信", "GET", "JSON"),
    WEB_WX_BATCH_GET_CONTACT("%s/webwxbatchgetcontact?type=ex&r=%s&lang=zh_CN&pass_ticket=%s", "查询群信息", "GET", "JSON"),
    WEB_WX_REMARKNAME("%s/webwxoplog?lang=zh_CN&pass_ticket=%s", "修改好友备注", "GET", "JSON"),
    WEB_WX_VERIFYUSER("%s/webwxverifyuser?r=%s&lang=zh_CN&pass_ticket=%s", "被动添加好友", "GET", "JSON"),
    WEB_WX_GET_MEDIA("%s/webwxgetmedia", "下载文件", "GET", "JSON");
    /**
     * 请求路径
     */
    private String url;

    /**
     * 描述
     */
    private String desc;

    /**
     * 请求方式 get 还是  post
     */
    private String reqType;

    /**
     * 请求报文 格式 JSON 还是 XML
     */
    private String dataType;

    WxWebURLEnum(String url, String desc, String reqType, String dataType) {
        this.url = url;
        this.desc = desc;
        this.reqType = reqType;
        this.dataType = dataType;
    }

    public String getUrl() {
        return url;
    }

    public String getDesc() {
        return desc;
    }

    public String getReqType() {
        return reqType;
    }

    public String getDataType() {
        return dataType;
    }
}

